package com.atguigu.eduservice.feign;

import com.atguigu.eduservice.feign.impl.UcenterServiceImpl;
import com.atguigu.servicebase.entity.vo.UcenterMemberVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @title: UcenterService
 * @Author danghailiang
 * @Date: 2022/10/9 12:00
 * @Version 1.0
 */
@Api("微服务-用户中心")
@FeignClient(value = "service-center", fallback = UcenterServiceImpl.class)
@Component
public interface UcenterService {
    /**
     * 根据id获取用户信息
     * @param id
     * @return
     */
    @ApiOperation("获取用户信息")
    @GetMapping("/eduucenter/api/ucenterMember/getUserInfo/{id}")
    public UcenterMemberVo getUserInfo(@PathVariable("id") String id);
}
